package com.dave.sleuth.userservice.action

import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod
import org.springframework.web.bind.annotation.RequestParam
import org.springframework.web.bind.annotation.RestController

/**
 * Created by mac on 2018/5/30
 * Describes
 */
@RestController
class UserAction{
    @RequestMapping(value = ["/hi"])
    fun sayHi(@RequestParam name:String):String{
        return "你好我是$name"
    }
}